home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / utility / pock51.zip / WHEREIS.BAT < prev    next >
DOS Batch File  |  1997-07-26  |  663b  |  20 lines

  1. echo off
  2. if "%1"=="/?" goto usage
  3. if "%1"=="" goto usage
  4. d /IWW %1 %2 %3 %4 %5 %6 %7 %8 %9
  5. goto exit
  6. :usage
  7. echo.
  8. echo Search whole drive(s) for files/dirs matching specified filespec(s).
  9. echo USAGE: WHEREIS p1 p2 p2 ..pn
  10. echo Where "p1 p2..pn" are search options, for example:
  11. echo.
  12. echo  WHEREIS FRED*         "Files matching FRED*"
  13. echo  WHEREIS /Tc A:        "Files modified today and copy to A:"
  14. echo  WHEREIS /}5k'Lost'    "Files greater than 5k containing the string 'Lost'"
  15. echo  WHEREIS C: D: *ZD*    "Files matching *ZD* on drives C: and D:"
  16. echo.
  17. echo  The user can mix and match any of these options (up to 9 paramters)
  18. echo.
  19. :exit
  20.